package com.party.core.dao.read.system;

import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.system.SysRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 角色读取
 * 
 * @author Administrator
 *
 */
@Repository
public interface SysRoleReadDao extends BaseReadDao<SysRole> {

	SysRole uniqueProperty(SysRole sysRole);

	List<SysRole> getRoleByMemberId(@Param("params") Map<String, Object> params);

    List<SysRole> checkCode(@Param("code") String code, @Param("id") String id);

    List<String> getErrorData(@Param(value = "params") Map<String, Object> params);

    /**
     * 有达人字段没有达人角色的用户
     * @return
     */
    List<String> getNotHasExpert();
}
